<div class="body body-search">
	<span><a href="<?php echo $this->url('catalog/category/addnew', array('p' => $this->parent_id));?>" class="button"><?php echo $this->language->load('New Category');?></a></span>
	<hr/>
</div>
<div class="body">
	<table class="list">
		<tr>
			<th class="id">#</th>
			<th class="id"><?php echo $this->language->load('E-Name');?></th>
			<th><?php echo $this->language->load('Name');?></th>
			<th class="id"><?php echo $this->language->load('Products');?></th>
			<th class="time"><?php echo $this->language->load('Last Modified');?></th>
			<th class="id"><?php echo $this->language->load('Actived');?>?</th>
			<th class="id">&nbsp;</th>
			<th class="id">&nbsp;</th>
		</tr>
		<?php
		$productTotal = 0;
		foreach($this->list AS $row) {
			$childrenCount = isset($this->children[$row->getId()]) ? $this->children[$row->getId()] : 0;
		?>
		<tr>
			<td><?php echo $row->getId();?></td>
			<td><?php echo $row->getEname();?></td>
			<td><a href="<?php echo $this->url('catalog/category/list', array('p' => $row->getId()));?>"><?php echo $this->escape($row->getName());?></a><?php if($childrenCount > 0) { ?><em>(<?php echo $childrenCount;?>)</em><?php } ?></td>
			<td class="center"><?php echo $row->getProductTotal();?></td>
			<td><?php echo $this->date($row->getLastmodified() ? $row->getLastmodified() : $row->getCreationtime());?></td>
			<td class="center"><?php echo $row->getIsActive() ? '√' : '';?></td>
			<td><a href="<?php echo $this->url('catalog/category/move', array('id' => $row->getId()));?>"><?php echo $this->language->load('MoveTo');?>»</a></td>
			<td><a href="<?php echo $this->url('catalog/category/edit', array('id' => $row->getId()));?>"><?php echo $this->language->load('Edit');?>»</a></td>
		</tr>
		<?php } ?>
	</table>
</div>
